<?php
function ban($uname, $reason){
include("./includes/settings.inc");
mysql_query("INSERT INTO enlight_banlist VALUES ('$_SERVER[REMOTE_ADDR]', '$uname', '$reason')");
mail("admin <$adminmailaddress>", "Automatic user banning notification.", "$uname with IP-address $_SERVER[REMOTE_ADDR] has been banned.\n $reason Please inform this user if appropriate.", "From: $phpmailfrom");
die("Je bent de zwakste schakel, tot ziens!");
}
?>